package work;

public class HeapTest {
    public static void main(String[] args) {
        MaxHeap<Integer> maxHeap = new MaxHeap<>(12);
        maxHeap.add(7);
        maxHeap.add(8);
        maxHeap.add(6);
        maxHeap.printf();
        maxHeap.delete();
        System.out.println();
        maxHeap.printf();
        System.out.println();

        MinHeap<Integer> minHeap = new MinHeap<>(12);
        minHeap.add(7);
        minHeap.add(8);
        minHeap.add(6);
        minHeap.printf();
        minHeap.delete();
        System.out.println();
        minHeap.printf();
    }
}
